<div class="im-content-wrap">
{{ if(message.userId == mineId){ }}
	<div class="im-content-box im-self im-cf J-im-content-box">
		<div class="im-head"><img src="{{=myHeadImg}}" alt=""></div>
		<div class="J-im-msgbtn" msgcid="{{=msgcid}}"></div>
		<div class="im-inner J-im-inner">
		        {{ if(product.oriImgUrls && product.oriImgUrls.length >0){ }}
					<div class="im-pro-img"><img src="{{=product.oriImgUrls[0]}}" alt=""></div>
				{{ }else{ }}
					<div class="im-pro-img"><img src="{{=nophoto}}" alt=""></div>
				{{}}}
				<div class="im-pro-info">
					<div class="im-pro-name"><a target="_blank" href="{{=link}}">{{-product.name}}</a></div>
					{{if(product.unitPrice && product.unitPrice.unitPrice4Display){}}
                        <div class="im-pro-txt"><span>Price:</span><b> {{=product.unitPrice.unitPrice4Display}}</b></div>
                     {{ } }}
					 {{if(product.tradeTerms){ }}
					 	<div class="im-pro-txt"><span>TradeTerms:</span> {{=product.tradeTerms}}</div>
					 {{}}}
                     {{if(product.minOrder){}}
                        <div class="im-pro-txt"><span>MOQ:</span> {{=product.minOrder.value}} {{=product.minOrder.unit}}</div>
                    {{ } }}
				</div>
		</div>
	</div>
{{ }else if(message.toUserId == mineId && message.userId == otherId){ }}
	<div class="im-content-box im-other im-cf J-im-content-box">
		<div class="im-head"><img src="{{=otherHeadImg}}" alt=""></div>
		<div class="J-im-msgbtn" msgcid="{{=msgcid}}"></div>
		<div class="im-inner J-im-inner">
		    {{ if(product.oriImgUrls && product.oriImgUrls.length >0){ }}
				<div class="im-pro-img"><img src="{{=product.oriImgUrls[0]}}" alt=""></div>
			{{ }else{ }}
				<div class="im-pro-img"><img src="{{=nophoto}}" alt=""></div>
			{{}}}
				<div class="im-pro-info">
					<div class="im-pro-name"><a target="_blank" href="{{=link}}">{{-product.name}}</a></div>
					{{if(product.unitPrice && product.unitPrice.unitPrice4Display){}}
                        <div class="im-pro-txt"><span>Price:</span><b> {{=product.unitPrice.unitPrice4Display}}</b></div>
                     {{ } }}
					 {{if(product.tradeTerms){ }}
					 	<div class="im-pro-txt"><span>TradeTerms:</span> {{=product.tradeTerms}}</div>
					 {{}}}
                     {{if(product.minOrder){}}
                        <div class="im-pro-txt"><span>MOQ:</span> {{=product.minOrder.value}} {{=product.minOrder.unit}}</div>
                    {{ } }}
				</div>
		</div>
	</div>
{{ } }}
</div>